<%@page import="itsm.isperp.framework.core.context.ContextHolder"%>
<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<div class="header">
	<h2>
		呼叫中心参数设置<span><font color="red">（* 为必填项）</font> </span>
	</h2>
</div>
<form action="app/appConfig/save" id="formAppConfig" method="post">

	<table class=" form-table">
		<tbody>
			<tr>
				<td class="td1">CTI服务器地址：</td>
				<td class="td2"><input type="text" id="ccServerIp"
					name="ccServerIp" value="${ccServerIp}" style="width:30%"
					class="required" /></td>
			</tr>
			<tr>
				<td class="td1">端口号：</td>
				<td class="td2"><input type="text" id="ccServerPort"
					name="ccServerPort" value="${ccServerPort}" maxlength="50"
					style="width:30%" class="required" /></td>
			</tr>
		</tbody>
	</table>

</form>
<table class=" form-table">
	<tbody>
		<tr>
			<td class="td1"></td>
			<td class="td2"><button type="submit" id="btnSaveAppConfig"
					class="nui-mainbtn" onclick="btnSaveAppConfigOnclick();"
					name="btnSaveAppConfig" value="保存">&nbsp;&nbsp;&nbsp;保存&nbsp;&nbsp;&nbsp;</button>
			</td>
		</tr>

	</tbody>
</table>

<script type="text/javascript">
	function btnSaveAppConfigOnclick() {
		isperp.showLoading();
		isperp.submitForm({
			formId : "formAppConfig",
			success : function(data) {
				if (data.success) {

					isperp.hideLoading();
					isperp.alert("保存成功！");
				} else {
					isperp.alert(data.tata);
				}
			},
			error : function() {

				isperp.hideLoading();
				isperp.alert("保存失败！");
			}
		});
	}
</script>










